<?php
switch (str_safe($_GET['m'])) {
  case 'channel':
    cms('plupload', [['image', '#c_picture_upload'], ['image', '#c_cover_upload'], ['multiimage', '#c_slideshow_upload']]);
    break;

  case 'detail':
    cms('plupload', [['image', '#d_picture_upload'], ['multiimage', '#d_slideshow_upload'], ['file', '#d_attachment_upload'], ['media', '#d_video_upload']]);
    break;

  case 'link':
    cms('plupload', [['image', '#l_picture_upload']]);
    break;

  case 'slideshow':
    cms('plupload', [['image', '#s_picture_upload']]);
    break;

  case 'site':
    cms('plupload', [['image', '#site_picture_upload'], ['multiimage', '#site_imgs_upload']]);
    break;

  case 'site_product':
    cms('plupload', [['image', '#product_picture_upload'], ['multiimage', '#product_imgs_upload']]);
    break;

  default:
    cms('plupload', '');
    break;
}